using Services;
using UnityEngine;

public class PointTrigger_Player : PointTrigger<Player>
{
    private Player player;

    protected override void Awake()
    {
        base.Awake();
        player = ServiceLocator.Get<ActionController>().player;
    }

    protected override Player GetContact(Vector2Int position)
    {
        if (player.GridTransform.Position == position)
            return player;
        return null;
    }
}
